class InitialRelease < ActiveRecord::Migration
  def self.create_site(name, desc)
    Site.new({'name'=>name, 'description'=>desc, 'package_id'=>1, 'program_id'=>1}).save!
  end

  def self.up

	User.new({'login'=>'KHooper','password'=>'KHooper','password_confirmation'=>'KHooper','site_id'=>'1','email'=>'email1@email.com','role'=>'coord'}).save!
	User.new({'login'=>'PFriedman','password'=>'PFriedman','password_confirmation'=>'PFriedman','site_id'=>'2','email'=>'email2@email.com','role'=>'coord'}).save!
	User.new({'login'=>'JNeal','password'=>'JNeal','password_confirmation'=>'JNeal','site_id'=>'3','email'=>'email3@email.com','role'=>'coord'}).save!
	User.new({'login'=>'MTurner','password'=>'MTurner','password_confirmation'=>'MTurner','site_id'=>'4','email'=>'email4@email.com','role'=>'coord'}).save!
	User.new({'login'=>'SSwitzer','password'=>'SSwitzer','password_confirmation'=>'SSwitzer','site_id'=>'5','email'=>'email5@email.com','role'=>'coord'}).save!
	User.new({'login'=>'MMaples','password'=>'MMaples','password_confirmation'=>'MMaples','site_id'=>'6','email'=>'email6@email.com','role'=>'coord'}).save!
	User.new({'login'=>'IDelgado','password'=>'IDelgado','password_confirmation'=>'IDelgado','site_id'=>'7','email'=>'email7@email.com','role'=>'coord'}).save!
	User.new({'login'=>'DPallasch','password'=>'DPallasch','password_confirmation'=>'DPallasch','site_id'=>'8','email'=>'email8@email.com','role'=>'coord'}).save!
	User.new({'login'=>'LBaker','password'=>'LBaker','password_confirmation'=>'LBaker','site_id'=>'9','email'=>'email9@email.com','role'=>'coord'}).save!
	User.new({'login'=>'KGerman','password'=>'KGerman','password_confirmation'=>'KGerman','site_id'=>'10','email'=>'email10@email.com','role'=>'coord'}).save!
	User.new({'login'=>'KJames','password'=>'KJames','password_confirmation'=>'KJames','site_id'=>'11','email'=>'email11@email.com','role'=>'coord'}).save!
	User.new({'login'=>'PCarroll','password'=>'PCarroll','password_confirmation'=>'PCarroll','site_id'=>'12','email'=>'email12@email.com','role'=>'coord'}).save!
	User.new({'login'=>'MSton','password'=>'MSton','password_confirmation'=>'MSton','site_id'=>'13','email'=>'email13@email.com','role'=>'coord'}).save!
	User.new({'login'=>'MTomkow','password'=>'MTomkow','password_confirmation'=>'MTomkow','site_id'=>'14','email'=>'email14@email.com','role'=>'coord'}).save!
	User.new({'login'=>'LVirella','password'=>'LVirella','password_confirmation'=>'LVirella','site_id'=>'15','email'=>'email15@email.com','role'=>'coord'}).save!
	User.new({'login'=>'LOrtiz','password'=>'LOrtiz','password_confirmation'=>'LOrtiz','site_id'=>'16','email'=>'email16@email.com','role'=>'coord'}).save!
	User.new({'login'=>'TGraham','password'=>'TGraham','password_confirmation'=>'TGraham','site_id'=>'17','email'=>'email17@email.com','role'=>'coord'}).save!
	User.new({'login'=>'SWilliams','password'=>'SWilliams','password_confirmation'=>'SWilliams','site_id'=>'18','email'=>'email18@email.com','role'=>'coord'}).save!

    
    Program.new({'name'=>'Chicago Run'}).save!

	self.create_site('CICS Bucktown','Karin Hooper');
	self.create_site('Benjamin Mays School','Peggy Friedman');
	self.create_site('Walsh School','John Neal');
	self.create_site('Schiller School','Melissa Turner');
	self.create_site('George Rogers Clark','Susan Switzer');
	self.create_site('CICS Longwood','Melanie Maples');
	self.create_site('Columbia Explorers Academy','Ivan Delgado');
	self.create_site('Chicago Academy','Deirdre Pallasch');
	self.create_site('Sherman School of Excellence','Laura Baker');
	self.create_site('Jackie Robinson Elementary','Kristin German');
	self.create_site('Namaste Charter','Kelly James');
	self.create_site('Mount Greenwood Elementary','Peggy Carroll');
	self.create_site('James Ward School','Mrs. Ston');
	self.create_site('Rosario Castellanos','Mr. Tomkow');
	self.create_site('John Murphy School','Lisa Virella');
	self.create_site('Avondale Elementary','Luis Ortiz');
	self.create_site('LEARN Charter','Tiffany Graham');
	self.create_site('LEARN Excel','Shameka Williams');
  end

  def self.down
    Program.destroy_all
    Site.destroy_all
  end
end
